package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class SysGateway {

    /** 网关id */
    private String gatewayId;

    /** 采集周期 1=每小时 2=每三小时 3=每6小时 4=每12小时 5=每天 */
    private String collectCycle;

    /**
     * 楼栋号
     */
    private String buildingNo;

    /**
     * 小区名称
     */
    private String housingName;

    /**
     * 单元
     */
    private String unit;

    private Long areaId;
    private Long streetId;
    private Long communityId;
    private Long deptId;

    //信号
    private int rssi;
    //电量
    private double batteryVoltage;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeSample;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeUpload;
}
